import Cookies from "js-cookie";

import { userToken } from "@/api/keys";

export function getToken() {
  return Cookies.get(userToken);
}

export function setToken(token) {
  Cookies.remove(userToken);
  Cookies.set(userToken, token, {
    expires: 3
  });
}

export function removeToken() {
  Cookies.remove(userToken);
}
